package com.fulihui.systemcore.api;

import com.fulihui.systemcore.condition.WechatConfigCondition;
import com.fulihui.systemcore.dto.WechatConfig;
import org.near.servicesupport.request.TRequest;
import org.near.servicesupport.result.TMultiResult;
import org.near.servicesupport.result.TSingleResult;

/**
 * 微信配置服务
 * @author Created by Willard.Hu on 2016/6/2.
 */
public interface WechatConfigService {

    /**
     * 查询微信配置
     * @param request {@link WechatConfigCondition}
     * @return 返回单个微信配置 {@link WechatConfig}
     */
    TSingleResult<WechatConfig> querySingle(TRequest<WechatConfigCondition> request);

    /**
     * 多公众号 查询所有公众号的配置
     * @param condition
     * @return
     */
    TMultiResult<WechatConfig> query(WechatConfigCondition condition);
}
